<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'pc-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'hostname'); ?>
		<?php echo $form->textField($model,'hostname',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'hostname'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'ip'); ?>
		<?php echo $form->textField($model,'ip',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'ip'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'mac'); ?>
		<?php echo $form->textField($model,'mac',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'mac'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'inventory'); ?>
		<?php echo $form->textField($model,'inventory'); ?>
		<?php echo $form->error($model,'inventory'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'factory'); ?>
		<?php echo $form->textField($model,'factory'); ?>
		<?php echo $form->error($model,'factory'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'price'); ?>
		<?php echo $form->textField($model,'price'); ?>
		<?php echo $form->error($model,'price'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'prod_year'); ?>
		<?php echo $form->textField($model,'prod_year'); ?>
		<?php echo $form->error($model,'prod_year'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'prod_data'); ?>
		<?php echo $form->textField($model,'prod_data'); ?>
		<?php echo $form->error($model,'prod_data'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'usage_start'); ?>
		<?php echo $form->textField($model,'usage_start'); ?>
		<?php echo $form->error($model,'usage_start'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->